<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

	<head>
		<title><s:property value='%{getText("realTime_title")}' />
		</title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<link href="/SCMDB/style/monitorMap.css" rel="stylesheet" type="text/css" />
		<link href="/SCMDB/style/maptable.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/realTime/js/Drag.js"></script>
		<script type="text/javascript" src="/SCMDB/realTime/js/buildMap.js"></script>
		<script type="text/javascript" src="/SCMDB/realTime/js/AjaxUtil.js"></script>
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script type="text/javascript" src="/SCMDB/js/jquery-1.4.2.js"></script>
		<script src="/SCMDB/realTime/js/ControlMap.js" type="text/javascript"></script>
		<style type="text/css">
div {
	behavior: url("/SCMDB/realTime/iepngfix.htc")
}
</style>
	</head>
	<body>
		<div id="loading" style="display: block;">
		<iframe frameborder="0" src="about:blank" style="position:absolute;width:100%;height:100%;z-index:-1;scrolling:no;top:0px;left:0px;filter:alpha(opacity=1);opacity:0.5;background:#000;"></iframe>
		</div>
		 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="alarmSound" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="0px" height="0px">
			<param name="movie" value="/SCMDB/images/cancelAlarm.swf" />
			<param name="quality" value="high" />
			<param name="SCALE" value="noborder" />
		</object>
		<h2 style="z-index: 10000">
			<span id="countAll"></span>
			<span id="shiftsEmp" style="margin-left: 5px; margin-right: 10px;"></span>
			<input type="text" class="tagText" id="positionTagText" />
			<input type="button" value="人员定位" class="tagButton"
				onclick="AjaxTagSearch('positionTagText')" />
			<input type="button" value="班组人数" class="tagButton"
				onclick="openEmpData('/SCMDB/monitorAction!monitorDep.action')" />
			<input type="button" value="读卡器人数" class="tagButton"
				onclick="openEmpData('/SCMDB/monitorAction!monitorRead.action')" />
			<input id="hideAllReadersChk" type="checkbox" value="隐藏所有读头"
				onclick="_handleHideReadersCheckBoxClick()" />&nbsp隐藏所有读头
			
		</h2>
		<div class="main" style="overflow:none">
			<div id="mainDiv" style="overflow:none">
				<span id="controlPad"
					style="position: absolute; top: 0px; left: 0px; display: none; z-index: 20001">
					<img src="/SCMDB/images/jksub.png" onclick="showPad()"
						style="width: 25px; height: 90px; cursor: pointer;" /> </span>
				<div id="detailDiv" class="jktable"
					style="width: 220px; display: block;">
					<div id="alarmDiv" style="display:block">
						<p
							style="background: url(/SCMDB/images/template_h_b.png) repeat-x; width: 100%; height: 25px; line-height: 25px; font-Weight: bold; color: #ffffff">
							报警信息
						</p>
						<table border="0" cellpadding="1" cellspacing="1"
							class="tableList" style="width: 220px; margin: 0px;">
							<s:iterator id="alarmType" status="u"
								value="#request.listAlarmType">
								<tr>
									<td>
										<img id="alarmState${alarmType.id}"
											src="/SCMDB/images/green.jpg" />
									</td >
									<td>
										${alarmType.alarmName}
									</td>
									<td id="alarmText${alarmType.id}" style="cursor: pointer;"
										onclick="displayAlarmInfor(${alarmType.id})">
										0
									</td>
								</tr>
							</s:iterator>
						</table>
					</div>
				</div>
				<!--script language="JavaScript">
				<s:iterator id="map" status="u" value="#session.listMap">
					buildMap('<s:property value="mapName"/>','','<s:property value="mapWidth"/>','<s:property value="mapHeight"/>',"mainDiv");
					initMinMap('${id}','<s:property value="mapWidth"/>','<s:property value="mapHeight"/>');
				</s:iterator>
				<s:iterator id="read" status="u" value="#request.listRead">
					buildRead('${read.lrmID}','${read.lrmName}','${read.lrmType}','${read.lrmX}','${read.lrmY}','${read.lrmState}','${read.lrmTime}','${read.rmk}');
				</s:iterator>
				<s:iterator id="area" status="u" value="#request.listArea">
					buildArea('${area.id}','${area.name}','<s:property value="#session.areaListType.get(#area.type)"/>','${area.areaX}','${area.areaY}','${area.readers}');
				</s:iterator>
			  </script-->
			</div>
		</div>
	</body>
</html>
<script>
$(document).ready(function(){
	_init();
	initMap();
	initDivWidth();
	getId("controlPad").style.display="block";
	displayAlarm('<%=request.getAttribute("refreshTime")%>');
});
window.onresize=function(){initDivWidth();}
</script>
